<div data-role="page">

  <div data-role="header" data-position="inline">
    <%= link_to "Back", :action => :show, :id => @qadetail.object %>
    <h1>Edit <%= @qadetail.to%></h1>
    <%= link_to "Delete", :action => :delete, :id => @qadetail.object %>
  </div>

  <div data-role="content">
    <form method="POST" action="<%= url_for :action => :update %>">
      <input type="hidden" name="id" value="<%= @qadetail.object %>"/>
      <table>
          
          <tr>
              <td class="itemLabel">To: </td>
              <td class="itemValue"><input type="text" name="qadetail[to]" value="<%= @qadetail.to %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">User: </td>
              <td class="itemValue"><input type="text" name="qadetail[user_id]" value="<%= @qadetail.user_id %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Content: </td>
              <td class="itemValue"><input type="text" name="qadetail[content]" value="<%= @qadetail.content %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Created at: </td>
              <td class="itemValue"><input type="text" name="qadetail[created_at]" value="<%= @qadetail.created_at %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Status: </td>
              <td class="itemValue"><input type="text" name="qadetail[status]" value="<%= @qadetail.status %>"/></td>
          </tr>
          
          <tr>
              <td class="itemLabel">Question: </td>
              <td class="itemValue"><input type="text" name="qadetail[question_id]" value="<%= @qadetail.question_id %>"/></td>
          </tr>
          
      </table>
      <input type="submit" value="Update"/>
    </form>
  </div>

</div>
